FailMemErr calls the global routine Failure if the Toolbox routine MemError returns an error code other than noErr.
FailMemErr is called by a variety of methods that directly affect memory. You can call this routine from your code to invoke the failure mechanism should your request for memory fail.